/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.ISPviolation.service.internal;

import za.ac.cput.ISPviolation.model.Boxes;
import za.ac.cput.ISPviolation.service.ContainersService;

/**
 *
 * @author Enkosi
 */
public class ContainersServiceImpl implements ContainersService{

    @Override
    public int calcArea(Boxes box) {
        return box.getLength() * box.getWidth();
    }

    @Override
    public int calcPerimeter(Boxes box) {
        return (2 * (box.getLength() + box.getWidth()));
    }

    @Override
    public int calcVolume(Boxes box) {
        return (box.getHeight() * box.getLength() * box.getWidth());
    }
}
